export default function (defaultValue) {
    return {
        data() {
            return {
                data: defaultValue,
                isLoading: true
            }

        },
        async created() {
            this.data = await this.fetchData();
            this.isLoading = false;
        }
    }

}